package com.kr.weitao.util.rest.query;

import com.alibaba.fastjson.JSONObject;
import com.kr.weitao.util.rest.condition.EColumnAuthority;
import com.kr.weitao.util.spring.SpringUtils;
import lombok.extern.log4j.Log4j2;

/** Created by paco on 2017/06/09. */
@Log4j2
public class ObjectCreate {
  public long create(JSONObject param) {
    long id = 0;

    ObjectCreateUtil objectCreateUtil = SpringUtils.getBean(ObjectCreateUtil.class);

    id = objectCreateUtil.execute(param, EColumnAuthority.createdate);

    return id;
  }
}
